package cn.com.cetccst.datacenter.collection.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

//按之前数据类型写的，后面根据具体协议修改
@Entity(tableName = CollectionConfigEntity.TABLE_NAME)
public class CollectionConfigEntity {
    public static final String TABLE_NAME = "collection_config_entity";

    @PrimaryKey()
    @ColumnInfo(name = "id")
    private long id;
    @ColumnInfo(name = "enable")
    private String enable;
    @ColumnInfo(name = "hardware")
    private int hardware;
    @ColumnInfo(name = "app")
    private int app;
    @ColumnInfo(name = "status")
    private int status;
    @ColumnInfo(name = "port")
    private int port;
    @ColumnInfo(name = "audit_log")
    private int auditLog;
    @ColumnInfo(name = "security")
    private int security;
    @ColumnInfo(name = "content")
    private int content;
    @ColumnInfo(name = "os_exception")
    private int osException;
    @ColumnInfo(name = "app_exception")
    private int appException;
    @ColumnInfo(name = "access_outside")
    private int accessOutside;
    @ColumnInfo(name = "external_device")
    private int externalDevice;
    @ColumnInfo(name = "app_permission")
    private int appPermission;

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public boolean isEnabled() {
        return "true".equalsIgnoreCase(enable);
    }

    public int getHardware() {
        return hardware;
    }

    public void setHardware(int hardware) {
        this.hardware = hardware;
    }

    public int getApp() {
        return app;
    }

    public void setApp(int app) {
        this.app = app;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getAuditLog() {
        return auditLog;
    }

    public void setAuditLog(int auditLog) {
        this.auditLog = auditLog;
    }

    public int getSecurity() {
        return security;
    }

    public void setSecurity(int security) {
        this.security = security;
    }

    public int getContent() {
        return content;
    }

    public void setContent(int content) {
        this.content = content;
    }

    public int getOsException() {
        return osException;
    }

    public void setOsException(int osException) {
        this.osException = osException;
    }

    public int getAppException() {
        return appException;
    }

    public void setAppException(int appException) {
        this.appException = appException;
    }

    public int getAccessOutside() {
        return accessOutside;
    }

    public void setAccessOutside(int accessOutside) {
        this.accessOutside = accessOutside;
    }

    public int getExternalDevice() {
        return externalDevice;
    }

    public void setExternalDevice(int externalDevice) {
        this.externalDevice = externalDevice;
    }

    public int getAppPermission() {
        return appPermission;
    }

    public void setAppPermission(int appPermission) {
        this.appPermission = appPermission;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
